//---------------------------------------------------------------------------
#ifndef KlsDllLoadH
#define KlsDllLoadH
//---------------------------------------------------------------------------
#include <vcl.h>
#include <stdio.h>
#pragma hdrstop

#include "Wkls.h"
//---------------------------------------------------------------------------
/*
#if !defined(KlsVariableH)
  #include "Kls_Variable.h"

#endif
*/
#if !defined( RIF_CONTAINER_H )
  #include "contain.h"
#endif
#if !defined( Ex_BaseH )
  #include "Ex_Base.h"
#endif

//---------------------------------------------------------------------------
//class TKLS;

class TDKLS                 //type to be submited by user
{                        //will be in user`s .h file
 public:
 TKLS * DKLS ;         //holder for TKLS that will be opened later (later will change to *void in user's file)
 char * PathNameFound;      // = NULL if no file found = DKLS=NULL, delete object.
 int count;
 TDKLS ()   // default constructor
 {
  DKLS = NULL;
  count=0;
 }
 ~TDKLS ()
 {
  if (DKLS != NULL)
  {
   TKLS * KLSFun = DKLS;
   if ( 0 ==  --(count) )
    delete KLSFun;            //this will free the mem at adress KLSFun
   DKLS = NULL;
  }
 }
};
#endif

